package com.qf.day34;

import javax.servlet.*;
import java.io.IOException;
import java.io.PrintWriter;

/*
杨威
2021/9/10
15:06
*/
public class Myservlets implements Servlet {
    @Override
    public void init(ServletConfig servletConfig) throws ServletException {
        System.out.println("dsServlet初始化");
    }

    @Override
    public ServletConfig getServletConfig() {
        return null;
    }

    @Override
    public void service(ServletRequest servletRequest, ServletResponse servletResponse) throws ServletException, IOException {
        System.out.println("helloWorld");
        PrintWriter writer = servletResponse.getWriter();
        writer.println("nihao");
    }

    @Override
    public String getServletInfo() {
        return null;
    }

    @Override
    public void destroy() {

    }
}
